package com.venusz.datasource.model;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA
 * Created By Kinsey
 * Date: 2018/7/17
 * Time: 22:48
 */
public class DataSourceConfig implements Serializable {
    private static final long serialVersionUID = -8229225069865282503L;

    private String key;

    private String driven;

    private String username;

    private String password;

    private String url;

    public DataSourceConfig(){}

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getDriven() {
        return driven;
    }

    public void setDriven(String driven) {
        this.driven = driven;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "DataSourceConfig{" +
                "key='" + key + '\'' +
                ", driven='" + driven + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", url='" + url + '\'' +
                '}';
    }

    public DataSourceConfig(String key, String driven, String username, String password, String url) {
        this.key = key;
        this.driven = driven;
        this.username = username;
        this.password = password;
        this.url = url;
    }
}
